package com.diy.sigmund.diycommon.designpatterns.strategy.duck;

import com.diy.sigmund.diycommon.designpatterns.strategy.duck.flybehavior.FlyNoWay;
import com.diy.sigmund.diycommon.designpatterns.strategy.duck.quackbehavior.Squeak;

/**
 * 橡皮鸭子
 *
 * @author ylm-sigmund
 * @since 2022/1/13 10:20
 */
public class RubberDuck extends Duck {

    public RubberDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Squeak();
    }

    @Override
    public void display() {
        System.out.println("RubberDuck 橡皮鸭子");
    }

}
